package shizhan.factory;

import shizhan.dao.CalculatorDao;
import shizhan.dao.impl.*;

public interface CalculatorFactory {

    public CalculatorDao getCalculatorDao();

//    public static CalculatorDao getInstance(String key) {
//        switch (key) {
//            case "/":
//                return new DivideCalculator();
//            case "*":
//                return new MultiplyCalculator();
//            case "-":
//                return new JianCalculator();
//            case "+":
//                return new AddCalculator();
//            default:
//                throw new RuntimeException("无效的数据库类型:" + key);
//        }
//    }
}
